﻿using System;
using System.Drawing;
using System.Windows.Forms;
namespace LizardChess
{
    partial class frmPieceSelector
    {
        public System.Windows.Forms.PictureBox picWhiteQueen;
        public System.Windows.Forms.PictureBox picWhiteRook;
        public System.Windows.Forms.PictureBox picWhiteBishop;
        public System.Windows.Forms.PictureBox picWhiteKnight;
        public System.Windows.Forms.PictureBox picBlackKnight;
        public System.Windows.Forms.PictureBox picBlackBishop;
        public System.Windows.Forms.PictureBox picBlackRook;
        public System.Windows.Forms.PictureBox picBlackQueen;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        private bool m_IsWhite = false;
        public bool Colour
        {
            set { m_IsWhite = value; }
        }
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPieceSelector));
            this.picWhiteQueen = new System.Windows.Forms.PictureBox();
            this.picWhiteRook = new System.Windows.Forms.PictureBox();
            this.picWhiteBishop = new System.Windows.Forms.PictureBox();
            this.picWhiteKnight = new System.Windows.Forms.PictureBox();
            this.picBlackKnight = new System.Windows.Forms.PictureBox();
            this.picBlackBishop = new System.Windows.Forms.PictureBox();
            this.picBlackRook = new System.Windows.Forms.PictureBox();
            this.picBlackQueen = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteQueen)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteRook)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteBishop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteKnight)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackKnight)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackBishop)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackRook)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackQueen)).BeginInit();
            this.SuspendLayout();
            // 
            // picWhiteQueen
            // 
            this.picWhiteQueen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            this.picWhiteQueen.Image = ((System.Drawing.Image)(resources.GetObject("picWhiteQueen.Image")));
            this.picWhiteQueen.Location = new System.Drawing.Point(0, 0);
            this.picWhiteQueen.Name = "picWhiteQueen";
            this.picWhiteQueen.Size = new System.Drawing.Size(42, 42);
            this.picWhiteQueen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picWhiteQueen.TabIndex = 0;
            this.picWhiteQueen.TabStop = false;
            this.picWhiteQueen.Tag = "Queen";
            this.picWhiteQueen.Visible = false;
            this.picWhiteQueen.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picWhiteQueen.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picWhiteRook
            // 
            this.picWhiteRook.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            this.picWhiteRook.Image = ((System.Drawing.Image)(resources.GetObject("picWhiteRook.Image")));
            this.picWhiteRook.Location = new System.Drawing.Point(40, 0);
            this.picWhiteRook.Name = "picWhiteRook";
            this.picWhiteRook.Size = new System.Drawing.Size(42, 42);
            this.picWhiteRook.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picWhiteRook.TabIndex = 1;
            this.picWhiteRook.TabStop = false;
            this.picWhiteRook.Tag = "Rook";
            this.picWhiteRook.Visible = false;
            this.picWhiteRook.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picWhiteRook.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picWhiteBishop
            // 
            this.picWhiteBishop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            this.picWhiteBishop.Image = ((System.Drawing.Image)(resources.GetObject("picWhiteBishop.Image")));
            this.picWhiteBishop.Location = new System.Drawing.Point(80, 0);
            this.picWhiteBishop.Name = "picWhiteBishop";
            this.picWhiteBishop.Size = new System.Drawing.Size(42, 42);
            this.picWhiteBishop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picWhiteBishop.TabIndex = 2;
            this.picWhiteBishop.TabStop = false;
            this.picWhiteBishop.Tag = "Bishop";
            this.picWhiteBishop.Visible = false;
            this.picWhiteBishop.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picWhiteBishop.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picWhiteKnight
            // 
            this.picWhiteKnight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            this.picWhiteKnight.Image = ((System.Drawing.Image)(resources.GetObject("picWhiteKnight.Image")));
            this.picWhiteKnight.Location = new System.Drawing.Point(120, 0);
            this.picWhiteKnight.Name = "picWhiteKnight";
            this.picWhiteKnight.Size = new System.Drawing.Size(42, 42);
            this.picWhiteKnight.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picWhiteKnight.TabIndex = 3;
            this.picWhiteKnight.TabStop = false;
            this.picWhiteKnight.Tag = "Knight";
            this.picWhiteKnight.Visible = false;
            this.picWhiteKnight.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picWhiteKnight.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picBlackKnight
            // 
            this.picBlackKnight.BackColor = System.Drawing.Color.Transparent;
            this.picBlackKnight.Image = ((System.Drawing.Image)(resources.GetObject("picBlackKnight.Image")));
            this.picBlackKnight.Location = new System.Drawing.Point(120, 0);
            this.picBlackKnight.Name = "picBlackKnight";
            this.picBlackKnight.Size = new System.Drawing.Size(42, 42);
            this.picBlackKnight.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picBlackKnight.TabIndex = 7;
            this.picBlackKnight.TabStop = false;
            this.picBlackKnight.Tag = "Knight";
            this.picBlackKnight.Visible = false;
            this.picBlackKnight.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picBlackKnight.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picBlackBishop
            // 
            this.picBlackBishop.BackColor = System.Drawing.Color.Transparent;
            this.picBlackBishop.Image = ((System.Drawing.Image)(resources.GetObject("picBlackBishop.Image")));
            this.picBlackBishop.Location = new System.Drawing.Point(80, 0);
            this.picBlackBishop.Name = "picBlackBishop";
            this.picBlackBishop.Size = new System.Drawing.Size(42, 42);
            this.picBlackBishop.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picBlackBishop.TabIndex = 6;
            this.picBlackBishop.TabStop = false;
            this.picBlackBishop.Tag = "Bishop";
            this.picBlackBishop.Visible = false;
            this.picBlackBishop.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picBlackBishop.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picBlackRook
            // 
            this.picBlackRook.BackColor = System.Drawing.Color.Transparent;
            this.picBlackRook.Image = ((System.Drawing.Image)(resources.GetObject("picBlackRook.Image")));
            this.picBlackRook.Location = new System.Drawing.Point(40, 0);
            this.picBlackRook.Name = "picBlackRook";
            this.picBlackRook.Size = new System.Drawing.Size(42, 42);
            this.picBlackRook.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picBlackRook.TabIndex = 5;
            this.picBlackRook.TabStop = false;
            this.picBlackRook.Tag = "Rook";
            this.picBlackRook.Visible = false;
            this.picBlackRook.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picBlackRook.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // picBlackQueen
            // 
            this.picBlackQueen.BackColor = System.Drawing.Color.Transparent;
            this.picBlackQueen.Image = ((System.Drawing.Image)(resources.GetObject("picBlackQueen.Image")));
            this.picBlackQueen.Location = new System.Drawing.Point(0, 0);
            this.picBlackQueen.Name = "picBlackQueen";
            this.picBlackQueen.Size = new System.Drawing.Size(42, 42);
            this.picBlackQueen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.picBlackQueen.TabIndex = 4;
            this.picBlackQueen.TabStop = false;
            this.picBlackQueen.Tag = "Queen";
            this.picBlackQueen.Visible = false;
            this.picBlackQueen.MouseEnter += new System.EventHandler(this.picMouseEnter);
            this.picBlackQueen.MouseLeave += new System.EventHandler(this.picMouseLeave);
            // 
            // frmPieceSelector
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(197)))), ((int)(((byte)(105)))));
            this.ClientSize = new System.Drawing.Size(162, 36);
            this.Controls.Add(this.picBlackKnight);
            this.Controls.Add(this.picBlackBishop);
            this.Controls.Add(this.picBlackRook);
            this.Controls.Add(this.picBlackQueen);
            this.Controls.Add(this.picWhiteKnight);
            this.Controls.Add(this.picWhiteBishop);
            this.Controls.Add(this.picWhiteRook);
            this.Controls.Add(this.picWhiteQueen);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "frmPieceSelector";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Promote pawn to?";
            this.Load += new System.EventHandler(this.frmPieceSelector_Load);
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteQueen)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteRook)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteBishop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picWhiteKnight)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackKnight)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackBishop)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackRook)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBlackQueen)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private void picMouseEnter(object sender, System.EventArgs e)
        {
            ((PictureBox)sender).BackColor = Color.Yellow;
        }
        private void picMouseLeave(object sender, System.EventArgs e)
        {
            ((PictureBox)sender).BackColor = Color.FromArgb(255, 128, 0);
        }
        private void frmPieceSelector_Load(object sender, System.EventArgs e)
        {
            if (m_IsWhite)
            {
                picWhiteQueen.Visible = true;
                picWhiteRook.Visible = true;
                picWhiteBishop.Visible = true;
                picWhiteKnight.Visible = true;
            }
            else
            {
                picBlackQueen.Visible = true;
                picBlackRook.Visible = true;
                picBlackBishop.Visible = true;
                picBlackKnight.Visible = true;
            }
        }
    }
}